#define _CRT_SECURE_NO_WARNINGS

#include"Stack.h"

//#define DEFAULT_CAPACITY 4
void StackInit(struct Stack* pst, int DEFAULT_CAPACITY)
{
	pst->a = (int*)malloc(sizeof(int) * DEFAULT_CAPACITY);
	if (pst->a == NULL)
	{
		perror("malloc fail\n");
		return;
	}
	pst->top = 0;
	pst->capacity = DEFAULT_CAPACITY;
}
